package com.charger.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Map;

/**
 * 统计每日充电信息对象 charger_operation
 * 
 * @author Qinkunpeng
 * @date 2024-11-22
 */
@TableName("charger_operation")
@Data
public class ChargerOperation
{
    private static final long serialVersionUID = 1L;

    /** 运营情况编号 */
    @Excel(name = "运营情况编号")
    @TableId(type = IdType.AUTO, value = "op_id")
    private Long opId;

    /** 站点id */
    private Long stationId;

    /** 充电次数 */
    @Excel(name = "充电次数")
    private Long chargeNum;

    /** 充电金额(元) */
    @Excel(name = "充电金额(元)")
    private Double chargeMoney;

    /** 客户数 */
    @Excel(name = "客户数")
    private Long customerNum;

    /** 充电电量(kwh) */
    @Excel(name = "充电电量(kwh)")
    private Double charges;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /** 请求参数 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    private Map<String, Object> params;

}
